#### README for "Why Botter: How Pro-Government Bots Fight Opposition in Russia" ####


### Code ###
Code for replication is in "replication_code.R"
"helper_functions_apsr.R" contains special functions invoked in replication_code.R.

### Input data ###
3 input data files are:
(1) protest_data_replication.txt: dataset on offline protests
(2) opposition.txt: dataset with tweet IDs and user IDs for opposition activists
(3) tw.RData: dataset with tweet IDs, user IDs, and lemmatized tweets from the analyzed bots

### Output files ###
For convenience and due to computational complexity, some intermediary datasets and results are also provided here. All these datasets can be generated using code in "replication_code.R"
These intermediary files include:
- fig16_data_daily.txt: data for Fig. 16 (part 1)
- fig16_data_oppos_num_tw.txt: data for Fig. 16 (part 2)
- reg_data_extended.RData: data for regression analysis in App J
- reg_data_lags.RData: data for regression analysis in main analysis (protest and spikes lags)
- reg_data_leads.RData: data for regression analysis in main analysis (protest and spikes lags)
- reg_data_main.RData: data for regression analysis in main analysis
- reg_data_opp_sets.RData: data for regression analysis in App K
- reg_data_sent.RData: data for regression analysis in App L
- models_extended.RData: estimated regression models from App J
- models_main.RData: estimated models for main analysis
- models_main_lags.RData: estimated models for main analysis (protest and spikes lags)
- models_main_leads.RData: estimated models for main analysis (protest and spikes leads)
- models_opp_subsets_nav.RData: estimated models for App K (H4)
- models_opp_subsets_ntw.RData: estimated models for App K (H1)
- models_opp_subsets_put.RData : estimated models for App K (H3)
- models_opp_subsets_rtd.RData: estimated models for App K (H2)
- models_sent.RData: estimated models for App L
- datplot_extended.txt: Data for making plots in App J
- datplot_main_lags7_leads7.txt: Data for making plots in App F
- datplot_opp_sets.txt: Data for making plots in App K
- datplot_sent.txt: Data for making plots in App L







